package com.hirain.iterator;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Created by caicf on 2016/8/28.
 */
public class Client {
    public static void main(String[] args) {
        Aggregate aggregate=new ConcreteAggregate();
        Iterator iterator=aggregate.createIterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
